﻿<cfsilent>
	<cfscript>
		
		menuArgs = structNew();
		
		if ( event.isArgDefined("W1") ) structInsert(menuArgs, "W1", event.getArg("W1"), true);
		if ( event.isArgDefined("W2") ) structInsert(menuArgs, "W2", event.getArg("W2"), true);
		if ( event.isArgDefined("WKDAY") ) structInsert(menuArgs, "WKDAY", event.getArg("WKDAY"), true);
		if ( event.isArgDefined("CAMP") ) structInsert(menuArgs, "CAMP", event.getArg("CAMP"), true);
		if ( event.isArgDefined("CT") ) structInsert(menuArgs, "CT", event.getArg("CT"), true);

		if ( event.isArgDefined("CELL") ) structInsert(menuArgs, "CELL", event.getArg("CELL"), true);
		if ( event.isArgDefined("SIZE") ) structInsert(menuArgs, "SIZE", event.getArg("SIZE"), true);
		if ( event.isArgDefined("ROOMIDS") ) structInsert(menuArgs, "ROOMIDS", event.getArg("ROOMIDS"), true);

		classStep01 = "";
		classStep02 = "";
		classStep03 = "";
		classStep04 = "lastStep";
		
		if ( event.getRequestName() eq "classRoomBorrow" ) {
			classStep01 = listAppend(classStep01, "current", " ");
		}
		
		if ( event.getRequestName() eq "classRoomBorrowRoomList" ) {
			classStep01 = listAppend(classStep01, "lastDone", " ");
			classStep02 = listAppend(classStep02, "current", " ");
		}
		
		if ( event.getRequestName() eq "classRoomBorrowSign" ) {
			classStep01 = listAppend(classStep01, "done", " ");
			classStep02 = listAppend(classStep02, "lastDone", " ");
			classStep03 = listAppend(classStep03, "current", " ");
		}
		
		if ( event.getRequestName() eq "classRoomBorrowPrint" ) {
			classStep01 = listAppend(classStep01, "done", " ");
			classStep02 = listAppend(classStep02, "done", " ");
			classStep03 = listAppend(classStep03, "lastDone", " ");
			classStep04 = listAppend(classStep04, "current", " ");
		}
		
	</cfscript>
</cfsilent>

<div class="UIWizard clearfix">
	<ul class="fourStep stepNavigation">
		<li class="<cfoutput>#classStep01#</cfoutput>"><a <cfif listFind(classStep01, "current", " ") or listFind(classStep02, "current", " ") or listFind(classStep03, "current", " ")>href="<cfoutput>#buildURL('classRoomBorrow', menuArgs)#</cfoutput>"</cfif>><em>选择时段</em><span>确认教室的使用时间段</span></a></li>
		<li class="<cfoutput>#classStep02#</cfoutput>"><a <cfif listFind(classStep02, "current", " ") or listFind(classStep03, "current", " ")>href="<cfoutput>#buildURL('classRoomBorrowRoomList', menuArgs)#</cfoutput>"</cfif>><em>确认教室</em><span>选择可用教室</span></a></li>
		<li class="<cfoutput>#classStep03#</cfoutput>"><a <cfif listFind(classStep03, "current", " ")>href="<cfoutput>#buildURL('classRoomBorrowSign', menuArgs)#</cfoutput>"</cfif>><em>填写申请单</em><span>填写教室借用申请</span></a></li>
		<li class="<cfoutput>#classStep04#</cfoutput>"><a <cfif listFind(classStep04, "current", " ")>href="<cfoutput>#buildURL('classRoomBorrowPrint', menuArgs)#</cfoutput>"</cfif>><em>打印回执</em><span>打印教室使用调度单</span></a></li>
	</ul>
</div>